package com.sgb.member.weight;

import java.io.Serializable;
import java.util.Objects;

public class UploadFileBean implements Serializable {

    private int imgRes;
    private String fileName;
    private String filePath;
    private String fileType;
    private String urlPath; //记录已上传文件url
    private String extension; // 后缀

    public String getExtension() {
        return extension;
    }

    public void setExtension(String extension) {
        this.extension = extension;
    }

    public int getImgRes() {
        return imgRes;
    }

    public void setImgRes(int imgRes) {
        this.imgRes = imgRes;
    }

    public String getFileName() {
        return fileName;
    }

    public void setFileName(String fileName) {
        this.fileName = fileName;
    }

    public String getFilePath() {
        return filePath;
    }

    public void setFilePath(String filePath) {
        this.filePath = filePath;
    }

    public String getFileType() {
        return fileType;
    }

    public void setFileType(String fileType) {
        this.fileType = fileType;
    }

    public String getUrlPath() {
        return urlPath;
    }

    public void setUrlPath(String urlPath) {
        this.urlPath = urlPath;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;
        UploadFileBean that = (UploadFileBean) o;
        return urlPath.equals(that.urlPath);
    }

    @Override
    public int hashCode() {
        return Objects.hash(urlPath);
    }
}
